←Select platform

AddRange Method

Summary

Adds multiple items to the end of the collection.

Syntax
C#
VB
C++
public virtual void AddRange( 
   IEnumerable<T> items 
) 
Public Overridable Sub AddRange( 
   ByVal items As IEnumerable(Of T) 
) 
public:  
   virtual void AddRange( 
      IEnumerable<T>^ items 
   ) 

Parameters

items

The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

This method is essentially InsertRange with the index parameter set to Count.

This method raises the CollectionChanged event with the Add action.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly